package yl.hs.bmipfull.pojo.material;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.util.Date;

/**
 * 作用:  采购合同调价信息实体类<br/>
 * 创建时间: 2021年06月03日 15时01分19秒 <br/>
 *
 * @author 张凯
 */
@DBTable(disName = "销售合同调价信息", mapCode = "purchase_contract_price_adjustment")
public class PurchaseContractPriceAdjustmentEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "销售合同调价信息编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "TJMM")
    private String sn;
    /**
     * 调价单编号
     */
    private String adjustDocSN;
    /**
     * 合同产品编号
     */
    private String contractProductSN;
    /**
     * 原始金额
     */
    private float originalPrice;
    /**
     * 调价金额
     */
    private float modifyPrice;
    /**
     * 现售价
     */
    private float currentPrice;
    /**
     * 生效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT-8")
    private Date startTime;
    /**
     * 调价原因
     */
    private String cause;

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getAdjustDocSN() {
        return this.adjustDocSN;
    }

    public void setAdjustDocSN(String adjustDocSN) {
        this.adjustDocSN = adjustDocSN;
    }

    public String getContractProductSN() {
        return this.contractProductSN;
    }

    public void setContractProductSN(String contractProductSN) {
        this.contractProductSN = contractProductSN;
    }

    public float getOriginalPrice() {
        return this.originalPrice;
    }

    public void setOriginalPrice(float originalPrice) {
        this.originalPrice = originalPrice;
    }

    public float getModifyPrice() {
        return this.modifyPrice;
    }

    public void setModifyPrice(float modifyPrice) {
        this.modifyPrice = modifyPrice;
    }

    public float getCurrentPrice() {
        return this.currentPrice;
    }

    public void setCurrentPrice(float currentPrice) {
        this.currentPrice = currentPrice;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getCause() {
        return this.cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }


}